package com.google.jessewilson.codesearch.intellij;

import com.google.jessewilson.codesearch.api.CodeFileExtra;
import com.intellij.openapi.vfs.VirtualFile;

import java.util.ArrayList;
import java.util.Collections;
import java.util.List;

/**
 * All the locations of a file inside Intellij.
 *
 * @author jessewilson
 */
class ProjectFiles implements CodeFileExtra {

  private List<VirtualFile> files;

  public ProjectFiles(List<VirtualFile> virtualFiles) {
    this.files = Collections.unmodifiableList(new ArrayList<VirtualFile>(virtualFiles));
  }

  public List<VirtualFile> getFiles() {
    return files;
  }
}
